<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑医院</title>
    <style>
        #img img{
            float:left;
            width: 200px;
            height: 200px;
            border-radius: 10%;
            margin-left: 10px;
        }
    </style>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
         <input name="id" type="hidden" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-2"><span class="c-red">*</span>用户：</label>
            <div class="formControls col-8">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="userid" datatype="*" nullmsg="请选择">
                    <volist name=":getpatientLists($data['usertype'])" id="v">
                         <option value="{$v.id}"   <if condition="$data['userid'] eq $v['id']">selected</if> >{$v['realname']}</option>
                    </volist>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-2">用户类型：</label>
            <div class="formControls col-8">
                <span class="select-box">
                <select class="select Validform_error" size="1" name="cityid" datatype="*" nullmsg="请选择">
                   <option value="0"  <if condition="$data['usertype'] eq false">selected</if> >患者</option>
                   <option value="1"   <if condition="$data['usertype'] eq 1">selected</if> >医生</option>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-2">联系电话：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入" name="phonenum"  value="{$data.phonenum}">
            </div>
        </div>
            <div class="row cl">
            <label class="form-label col-2">反馈内容：</label>
            <div class="formControls col-8">
                <textarea rows="5" cols="30" class="textarea" style="resize:none" name="comment" placeholder="请输入描述信息">{$data['comment']}</textarea>
            </div>
        </div>
        <if condition="$data['cover']">
            <div class="row cl" id="img">
                <label class="form-label col-2">图片集：</label>
                <?php
              $imgs=explode(",",$data['cover']);
            ?>
             <div id="layer-photos-demo" class="layer-photos-demo">
                <volist name="imgs" id="v">
                    <img    src="__UPS__{$v}"   layer-index="{$key}">
                </volist>
             </div>
            </div>
            <else/>
        </if>
        <div class="row cl">
            <label class="form-label col-2">回复内容：</label>
            <div class="formControls col-8">
         <script id="content" name="replay" type="text/plain" style="width:100%;height:400px;" >{:htmlspecialchars_decode($data['replay'])}</script>
            </div>
         <div class="col-4"></div>
       </div>
        <div class="row cl">
            <div class="col-8 col-offset-2">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
          </form>
     </div>
   <include file="Common:footer_include"/>
</body>
 <script type="text/javascript">
        $(function () {
            var ue = UE.getEditor('content');
        });
         layer.photos({
                photos: '#layer-photos-demo',
                tab: function(pic, layero){
                    console.log(pic) //当前图片的一些信息
                }
            });
    </script>
</html>